package com.ibeeking.gmc.global.service.common.param;

import com.ibeeking.nematos.utils.base.BaseValidationGroup;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@Accessors(chain = true)
public class GroupParam implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 集团代码
     */
    @NotNull(message = "代码不能为空", groups = {BaseValidationGroup.Update.class,BaseValidationGroup.Insert.class})
    private String code;

    /**
     * 集团名称
     */
    @NotNull(message = "名称不能为空", groups = {BaseValidationGroup.Update.class,BaseValidationGroup.Insert.class})
    private String name;

    /**
     * 集团联系人电话
     */
    @NotNull(message = "联系人电话不能为空", groups = {BaseValidationGroup.Update.class,BaseValidationGroup.Insert.class})
    private String phone;

    /**
     * 集团联系人
     */
    @NotNull(message = "联系人不能为空", groups = {BaseValidationGroup.Update.class,BaseValidationGroup.Insert.class})
    private String contacts;

    /**
     * 集团地址
     */
    @NotNull(message = "地址不能为空", groups = {BaseValidationGroup.Update.class,BaseValidationGroup.Insert.class})
    private String address;
    /**
     * 备注
     */
    private String description;

    @NotNull(message = "id不能为空", groups = {BaseValidationGroup.Update.class})
    private Long id;

    /**
     * 创建人
     */
    private Long createBy;

    /**
     * 更新人
     */
    private Long modifyBy;

}
